package com.qianji.api;

import com.qianji.utils.Result;
import com.qianji.vo.IntegralAddVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author 钟丽诗
 * @Date 2021.3.15
 */
@FeignClient(value = "qianji",url = "http://192.168.1.32:8888")
public interface IntegralApps {

    @ApiOperation("添加积分")
    @PutMapping("integral/add")
    @ResponseBody
    Result addIntegral(@RequestBody IntegralAddVO integralAddVO);

    @ApiOperation("删除积分")
    @ResponseBody
    @DeleteMapping("integral/delete")
    Result deleteCon(@RequestBody String id);

}
